<template>
  <div class="home">
    <el-card class="welcome-card">
      <div class="welcome-content">
        <el-icon class="welcome-icon" size="80">
          <Document />
        </el-icon>
        <h2>欢迎使用英语六级词汇学习系统</h2>
        <p>通过系统化的学习方式，帮助您掌握英语六级核心词汇</p>
        <div class="action-buttons">
          <el-button
            type="primary"
            size="large"
            @click="$router.push('/daily-study')"
          >
            每日学习
          </el-button>
          <el-button
            type="warning"
            size="large"
            @click="$router.push('/review')"
          >
            复习单词
          </el-button>
          <el-button
            type="success"
            size="large"
            @click="$router.push('/statistics')"
          >
            学习统计
          </el-button>
          <el-button type="info" size="large" @click="$router.push('/words')">
            浏览词汇
          </el-button>
        </div>
      </div>
    </el-card>

    <el-row :gutter="20" class="feature-cards">
      <el-col :span="8">
        <el-card class="feature-card">
          <div class="feature-content">
            <el-icon size="40" color="#409eff">
              <Calendar />
            </el-icon>
            <h3>每日学习</h3>
            <p>智能推荐每日学习内容，包含新单词和复习单词</p>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card class="feature-card">
          <div class="feature-content">
            <el-icon size="40" color="#e6a23c">
              <Refresh />
            </el-icon>
            <h3>复习单词</h3>
            <p>智能复习系统，按阶段巩固已学单词</p>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card class="feature-card">
          <div class="feature-content">
            <el-icon size="40" color="#67c23a">
              <Document />
            </el-icon>
            <h3>词汇列表</h3>
            <p>浏览完整的六级词汇列表，支持搜索和分页</p>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card class="feature-card">
          <div class="feature-content">
            <el-icon size="40" color="#f56c6c">
              <Trophy />
            </el-icon>
            <h3>学习统计</h3>
            <p>跟踪学习进度，查看掌握程度和复习计划</p>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script setup>
import { Calendar, Document, Trophy, Refresh } from "@element-plus/icons-vue";
// 首页逻辑
</script>

<style scoped>
.home {
  max-width: 1200px;
  margin: 0 auto;
}

.welcome-card {
  margin-bottom: 30px;
  text-align: center;
}

.welcome-content {
  padding: 40px 20px;
}

.welcome-icon {
  color: #409eff;
  margin-bottom: 20px;
}

.welcome-content h2 {
  color: #303133;
  margin-bottom: 15px;
  font-size: 28px;
}

.welcome-content p {
  color: #606266;
  font-size: 16px;
  margin-bottom: 30px;
}

.action-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.feature-cards {
  margin-top: 30px;
}

.feature-card {
  height: 200px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-content {
  text-align: center;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-content h3 {
  color: #303133;
  margin: 15px 0 10px 0;
  font-size: 18px;
}

.feature-content p {
  color: #606266;
  font-size: 14px;
  line-height: 1.5;
}
</style>
